package com.ruoyi.xh.service.impl;

import java.util.stream.Collectors;
import java.util.stream.Stream;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.transaction.annotation.Transactional;
import com.ruoyi.xh.mapper.XhJudeMapper;
import com.ruoyi.xh.domain.XhJude;
import com.ruoyi.xh.service.IXhJudeService;

/**
 * 判断Service业务层处理
 * 
 * @author songjw
 * @date 2024-12-13
 */
@Service
public class XhJudeServiceImpl extends ServiceImpl<XhJudeMapper,XhJude> implements IXhJudeService {

    /**
     * 查询判断
     * 
     * @param id 判断主键
     * @return 判断
     */
    @Override
    public XhJude selectXhJudeById(Long id)
    {
        return this.getById(id);
    }

    /**
     * 查询判断列表
     * 
     * @param xhJude 判断
     * @return 判断
     */
    @Override
    public Page<XhJude> selectXhJudeList(XhJude xhJude)
    {
        return new Page<>();
    }

    /**
     * 新增判断
     * 
     * @param xhJude 判断
     *
     */
    @Override
    public void insertXhJude(XhJude xhJude)
    {
        this.save(xhJude);
    }

    /**
     * 修改判断
     * 
     * @param xhJude 判断
     *
     */
    @Override
    public void updateXhJude(XhJude xhJude)
    {
        this.updateById(xhJude);
    }

    /**
     * 批量删除判断
     * 
     * @param ids 需要删除的判断主键
     *
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void deleteXhJudeByIds(Long[] ids)
    {
        this.removeByIds(Stream.of(ids).collect(Collectors.toSet()));
    }
}
